package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {

	void add(Permission permission);

	Set<Permission> findPermissions(Integer roleId);

	Page<Permission> queryByCondition(String queryString);

	void delete(Integer id);

	void deleteRelation(Integer id);

	Permission findById(Integer id);

	void update(Permission permission);

	List<Permission> findAll();


}
